﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    assembly="KuaJing.People"
    namespace="KuaJing.People.Domain">

  <class name="Contact" table="People_Contact" >
    <id name="Id" access="field.camelcase"
        column="ContactId" type="Int32">
      <generator class="native" />
    </id>
    <version name="Version" access="field.camelcase" />
    <property name="Value" unique-key="contact" />
    <property name="Way" unique-key="contact" />
    <property name="ValidationResult" />
    <many-to-one name="Person" column="PersonId" foreign-key="FK_People_Person_PersonId_People_Contact_ContactId" class="KuaJing.People.Domain.Person" cascade="save-update"  lazy="proxy" ></many-to-one>
   
    <property name="CreatedTime" access="field.camelcase" />
    <property name="CreatedUserName" access="field.camelcase" />
    <property name="ModifiedTime" access="field.camelcase" />
    <property name="ModifiedUserName" access="field.camelcase" />
    <property name="AccessedTime" access="field.camelcase" />
    <property name="AccessedUserName" access="field.camelcase" />
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>
